node-api-dotnet 0.2.15 → 0.2.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +19 -1
- package/linux-x64/Microsoft.JavaScript.NodeApi.node +0 -0
- package/net472/Microsoft.JavaScript.NodeApi.DotNetHost.dll +0 -0
- package/net472/Microsoft.JavaScript.NodeApi.dll +0 -0
- package/net6.0/Microsoft.JavaScript.NodeApi.DotNetHost.dll +0 -0
- package/net6.0/Microsoft.JavaScript.NodeApi.dll +0 -0
- package/net7.0/Microsoft.JavaScript.NodeApi.DotNetHost.dll +0 -0
- package/net7.0/Microsoft.JavaScript.NodeApi.dll +0 -0
- package/osx-arm64/Microsoft.JavaScript.NodeApi.node +0 -0
- package/osx-x64/Microsoft.JavaScript.NodeApi.node +0 -0
- package/package.json +1 -1
- package/win-x64/Microsoft.JavaScript.NodeApi.node +0 -0
package/index.d.ts
CHANGED
|
@@ -27,8 +27,26 @@ export declare function require(dotnetAssemblyFilePath: string): any;
|
|
|
27
27
|
/**
|
|
28
28
|
* Loads an arbitrary .NET assembly that isn't necessarily designed as a JS module,
|
|
29
29
|
* enabling dynamic invocation of any APIs in the assembly.
|
|
30
|
-
* @param dotnetAssemblyFilePath Path to the .NET assembly DLL file.
|
|
30
|
+
* @param dotnetAssemblyFilePath Path to the .NET assembly DLL file to load.
|
|
31
31
|
* @returns A JS object that represents the loaded assembly; each property of the object
|
|
32
32
|
* is a public type in the assembly.
|
|
33
33
|
*/
|
|
34
34
|
export declare function load(dotnetAssemblyFilePath: string): Assembly | undefined;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Adds a listener for the `resolving` event, which is raised when a .NET assembly requires
|
|
38
|
+
* an additional dependent assembly to be resolved and loaded. The listener must call `load()`
|
|
39
|
+
* to load the requested assembly file.
|
|
40
|
+
*/
|
|
41
|
+
export declare function addListener(
|
|
42
|
+
event: 'resolving',
|
|
43
|
+
listener: (assemblyName: string, assemblyVersion: string) => void,
|
|
44
|
+
): this;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Removes a listener for the `resolving` event.
|
|
48
|
+
*/
|
|
49
|
+
export declare function removeListener(
|
|
50
|
+
event: 'resolving',
|
|
51
|
+
listener: (assemblyName: string, assemblyVersion: string) => void,
|
|
52
|
+
): this;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|