diff --git a/NOTICE b/NOTICE index e43810f24e..8e47e0290f 100644 --- a/NOTICE +++ b/NOTICE @@ -29,6 +29,7 @@ under the licensing terms detailed in LICENSE: * Valeria Viana Gusmao * Gabor Greif * Martin Fredriksson +* forcepusher Portions of this software are derived from third-party works licensed under the following terms: diff --git a/src/definitions.ts b/src/definitions.ts index 766c53cca0..1726936f27 100644 --- a/src/definitions.ts +++ b/src/definitions.ts @@ -496,6 +496,12 @@ export class TSDBuilder extends ExportsWalker { sb.push(extendsNode.name.identifier.text); // TODO: fqn? } sb.push(" {\n"); + if (!isInterface) { + indent(sb, this.indentLevel); + sb.push("static wrap(ptr: usize): "); + sb.push(name); + sb.push(";\n"); + } var staticMembers = element.prototype.members; if (staticMembers) { // TODO: for (let member of staticMembers.values()) {