Typing bug: Argument of type '{ python: string; }' is not assignable to parameter of type 'PythonBridgeOptions | undefined'.
huan opened this issue · 1 comments
huan commented
The following code:
const python = pythonBridge({
python: 'python3',
})
Will generate the following TSLint error:
[ts]
Argument of type '{ python: string; }' is not assignable to parameter of type 'PythonBridgeOptions | undefined'.
Object literal may only specify known properties, and 'python' does not exist in type 'PythonBridgeOptions | undefined'.
Which is caused by the following declaration:
export interface PythonBridgeOptions {
- intepreter?: string;
+ python?: string;
stdio?: [PipeStdin, PipeStdout, PipeStderr];
cwd?: string;
env?: { [key:string]: string; };
uid?: number;
gid?: number;
}
munro commented
Awesome, thanks a lot! Sorry for the delay, your changes are published now yay yarn add python-bridge@1.0.2