In the README.md file, under the "Storage transcoders" section, the example code for withDefaultTranscoder function is possibly broken because of two problems:
Missing this keyword:Cannot find name 'numberStorage'. Did you mean the instance member 'this.numberStorage'? ts(2663)
Returned value from a setter:Setters cannot return a value. ts(2408)
Problem Description
In the
README.md
file, under the "Storage transcoders" section, the example code forwithDefaultTranscoder
function is possibly broken because of two problems:this
keyword:Cannot find name 'numberStorage'. Did you mean the instance member 'this.numberStorage'? ts(2663)
Setters cannot return a value. ts(2408)
Current Code
Expected Code