diff options
author | 2023-06-14 04:48:51 -0400 | |
---|---|---|
committer | 2023-06-14 01:48:51 -0700 | |
commit | b7ff3b0745a8ca9eec4c3c2590fb10203d7a2348 (patch) | |
tree | 0fa02f965a5d7da276781bf4e3ad75ee2597b423 | |
parent | a1bb79f4403bbff0ae8a25acffcf079ce6d40f3b (diff) | |
download | bun-b7ff3b0745a8ca9eec4c3c2590fb10203d7a2348.tar.gz bun-b7ff3b0745a8ca9eec4c3c2590fb10203d7a2348.tar.zst bun-b7ff3b0745a8ca9eec4c3c2590fb10203d7a2348.zip |
document Bun.argv in typedefs (#3302)
-rw-r--r-- | packages/bun-types/bun.d.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/bun-types/bun.d.ts b/packages/bun-types/bun.d.ts index 6987a9226..306971d4c 100644 --- a/packages/bun-types/bun.d.ts +++ b/packages/bun-types/bun.d.ts @@ -51,6 +51,10 @@ declare module "bun" { * */ export const env: Env; + /** + * The raw arguments passed to the process, including flags passed to Bun. If you want to easily read flags passed to your script, consider using `process.argv` instead. + */ + export const argv: string[]; export const origin: string; /** |