String value should also be possible to write

This commit is contained in:
daan flore 2022-01-02 19:24:16 +01:00
parent f8607ce73e
commit 74ee7f371d

@ -5290,7 +5290,7 @@ export interface NS extends Singularity {
* @param data - Data to write.
* @param mode - Defines the write mode. Only valid when writing to text files.
*/
write(handle: string, data?: string[] | number, mode?: "w" | "a"): Promise<void>;
write(handle: string, data?: string[] | number | string, mode?: "w" | "a"): Promise<void>;
/**
* Attempt to write to a port.