Skip to content

Commit

Permalink
Fix typedefs module export
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongin committed Mar 12, 2024
1 parent 80e94eb commit cfde242
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/NodeApi.Generator/TypeDefinitionsGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,11 @@ public SourceText GenerateTypeDefinitions(bool? autoCamelCase = null)
s += "export * from 'node-api-dotnet';";
s += "}";

// Re-export this module's types directly from the module index.
// This supports a direct import of the module file.
s++;
s += "export * from 'node-api-dotnet';";

return s;
}

Expand Down

0 comments on commit cfde242

Please sign in to comment.