Description
The loadAllSatelliteResources property is missing from the config class definition in dotnet.d.ts. This causes a TypeScript error when attempting to configure the dotnet object with this property in the following code:
dotnet
.withVirtualWorkingDirectory(runArgs.workingDirectory)
.withEnvironmentVariables(runArgs.environmentVariables)
.withDiagnosticTracing(runArgs.diagnosticTracing)
.withExitOnUnhandledError()
.withExitCodeLogging()
.withElementOnExit()
.withInteropCleanupOnExit()
.withDumpThreadsOnNonZeroExit()
.withConfig({
loadAllSatelliteResources: true,
jsThreadBlockingMode: "ThrowWhenBlockingWait",
});
Expected Behavior
The config class in dotnet.d.ts should include a definition for the loadAllSatelliteResources property to allow seamless configuration without TypeScript errors.
Actual Behavior
The TypeScript compiler throws an error because loadAllSatelliteResources is not recognized as a valid property of the config object in dotnet.d.ts.
Steps to Reproduce
- Use the dotnet object and attempt to configure it as shown in the example above.
- Include the loadAllSatelliteResources property in the withConfig method.
- Observe the TypeScript error related to the missing property in dotnet.d.ts.
Suggested Solution
Add the loadAllSatelliteResources property to the config class definition in dotnet.d.ts. For example:
type MonoConfig {
loadAllSatelliteResources?: boolean;
jsThreadBlockingMode?: string;
// other existing properties
}
Environment
-
Language: TypeScript
-
Platform: .NET Runtime
Let me know if you need additional details!