Skip to content

Commit ffdf411

Browse files
authored
Add valueOf method to generated class definitions (#1631)
1 parent f06b68f commit ffdf411

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/definitions.ts

+2
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,8 @@ export class TSDBuilder extends ExportsWalker {
501501
sb.push("static wrap(ptr: usize): ");
502502
sb.push(name);
503503
sb.push(";\n");
504+
indent(sb, this.indentLevel);
505+
sb.push("valueOf(): usize;\n");
504506
}
505507
var staticMembers = element.prototype.members;
506508
if (staticMembers) {

0 commit comments

Comments
 (0)