basarat / basarat/typescript-collections

TypeError: this.toStr is not a function

Open
#118 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.2k
Forks
153
PR merge metrics
No merged PRs in 30d

Description

TypeError: this.toStr is not a function at Dictionary.push../node_modules/typescript-collections/dist/lib/Dictionary.js.Dictionary.setValue

this should have been automated better, like omit the toString in the constructor and automate it by virtue of operating the object toString() or hash() seamlessly

cannot get it to work

bailing

I wrote my own hashset

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by inspecting node_modules/typescript-collections/dist/lib/Dictionary.js, especially Dictionary.setValue and its use of toStr. Reproduce the reported TypeError and clarify the intended relationship between toStr, toString(), and hash(); done requires an agreed behavior and a verified fix, but the issue provides no test or reproduction details.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.