Skip to content

Commit

Permalink
Add environment SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
Sytten committed Nov 18, 2024
1 parent 5be2fcc commit ddc81f5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/quickjs-types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@caido/quickjs-types",
"version": "0.13.0",
"version": "0.14.0",
"description": "Typing for the QuickJS Engine",
"author": "Caido Labs Inc. <[email protected]>",
"license": "MIT",
Expand Down
14 changes: 14 additions & 0 deletions packages/quickjs-types/src/caido/environment.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
declare module "caido:utils" {
/**
* The SDK for the Environment service.
* @category Environment
*/
export type EnvironmentSDK = {
/**
* Get the value of an environment variable.
* @param name The name of the environment variable.
* @returns The value of the environment variable.
*/
getVar(name: string): string | undefined;
};
}
4 changes: 2 additions & 2 deletions packages/quickjs-types/src/caido/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// <reference path="environment.d.ts" />
/// <reference path="findings.d.ts" />
/// <reference path="http.d.ts" />
/// <reference path="projects.d.ts" />
/// <reference path="replay.d.ts" />
/// <reference path="requests.d.ts" />
/// <reference path="shared.d.ts" />

/// <reference path="http.d.ts" />

0 comments on commit ddc81f5

Please sign in to comment.