generated from usdigitalresponse/template-public-code
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from usdigitalresponse/kevee/missing-docs
Add missing docs to readme
- Loading branch information
Showing
9 changed files
with
99 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,37 @@ | ||
export { AirtableScriptEnvironment as default } from './environment' | ||
|
||
import type { AirtableScriptGlobal } from './environment' | ||
import type { | ||
RunScriptOptions, | ||
RunScriptResult, | ||
} from './environment/run-airtable-script' | ||
|
||
declare global { | ||
const runAirtableScript: AirtableScriptGlobal['runAirtableScript'] | ||
/** | ||
* Runs a given Airtable script against a base fixture. Returns the output, console, and base | ||
* mutations that the script generated. | ||
* | ||
* @param {RunScriptOptions} options | ||
* @param {string} options.script The script to run, as a string. | ||
* @param {Base} options.base The base fixture to run the script against. Generate this using | ||
* the Test Fixture Generator extension. | ||
* @param {boolean} [options.inAutomation=false] Whether the script is running in an automation. Defaults to false. | ||
* @param {DefaultCursor | false} [options.defaultCursor=false] The default cursor to use for the script. Defaults to false. | ||
* @param {Collaborator | false} [options.currentUser=false] The current user to use for the script. Defaults to false. | ||
* @param {unknown} [options.mockInput=undefined] The mock input for the script. See the README for more information. | ||
* @param {Function | false} [options.mockFetch=false] A function that mocks any fetch requests. | ||
* @param {DefaultDateLocale} [options.defaultDateLocale='us'] The date format to use when a date field uses the "local" date format. Defaults to 'us'. | ||
* @returns {Promise<RunScriptResult>} | ||
*/ | ||
const runAirtableScript: ( | ||
options: RunScriptOptions | ||
) => Promise<RunScriptResult> | ||
/** | ||
* An object containing the different types of mutations that can be tracked in a script. | ||
*/ | ||
const MutationTypes: AirtableScriptGlobal['MutationTypes'] | ||
/** | ||
* A special string that is used to denote that a call to output.clear() was made in the script. | ||
*/ | ||
const OUTPUT_CLEAR: AirtableScriptGlobal['OUTPUT_CLEAR'] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters