mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-18 07:18:38 +02:00
MISC: Support css file type (#2378)
This commit is contained in:
10
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
10
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@@ -7744,7 +7744,7 @@ export interface NS {
|
||||
* @remarks
|
||||
* RAM cost: 0 GB
|
||||
*
|
||||
* This function can be used to write data to a text file (.txt, .json) or a script (.js, .jsx, .ts, .tsx).
|
||||
* This function can be used to write data to a text file (.txt, .json, .css) or a script (.js, .jsx, .ts, .tsx).
|
||||
*
|
||||
* This function will write data to that file. If the specified file does not exist,
|
||||
* then it will be created. The third argument mode defines how the data will be written to
|
||||
@@ -7792,7 +7792,7 @@ export interface NS {
|
||||
* @remarks
|
||||
* RAM cost: 0 GB
|
||||
*
|
||||
* This function is used to read data from a text file (.txt, .json) or script (.js, .jsx, .ts, .tsx).
|
||||
* This function is used to read data from a text file (.txt, .json, .css) or script (.js, .jsx, .ts, .tsx).
|
||||
*
|
||||
* This function will return the data in the specified file.
|
||||
* If the file does not exist, an empty string will be returned.
|
||||
@@ -7809,7 +7809,7 @@ export interface NS {
|
||||
*
|
||||
* This function returns the metadata associated with the specified file.
|
||||
*
|
||||
* @param filename - Name of the file to read the metadata from. It must be a text file (.txt, .json) or a script
|
||||
* @param filename - Name of the file to read the metadata from. It must be a text file (.txt, .json, .css) or a script
|
||||
* (.js, .jsx, .ts, .tsx).
|
||||
* @Returns The metadata of the file.
|
||||
*/
|
||||
@@ -8186,7 +8186,7 @@ export interface NS {
|
||||
* RAM cost: 0 GB
|
||||
*
|
||||
* Retrieves data from a URL and downloads it to a file on the specified server.
|
||||
* The data can only be downloaded to a script (.js, .jsx, .ts, .tsx) or a text file (.txt, .json).
|
||||
* The data can only be downloaded to a script (.js, .jsx, .ts, .tsx) or a text file (.txt, .json, .css).
|
||||
* If the file already exists, it will be overwritten by this command.
|
||||
* Note that it will not be possible to download data from many websites because they
|
||||
* do not allow cross-origin resource sharing (CORS).
|
||||
@@ -8278,7 +8278,7 @@ export interface NS {
|
||||
*
|
||||
* Move the source file to the specified destination on the target server.
|
||||
*
|
||||
* This command only works for scripts (.js, .jsx, .ts, .tsx) and text files (.txt, .json). It cannot, however, be
|
||||
* This command only works for scripts (.js, .jsx, .ts, .tsx) and text files (.txt, .json, .css). It cannot, however, be
|
||||
* used to convert from script to text file, or vice versa.
|
||||
*
|
||||
* This function can also be used to rename files.
|
||||
|
||||
Reference in New Issue
Block a user