@sanity/functions 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types.d.ts +6 -0
- package/package.json +1 -1
- package/src/types.ts +6 -0
package/dist/types.d.ts
CHANGED
|
@@ -4,6 +4,12 @@
|
|
|
4
4
|
* @beta
|
|
5
5
|
*/
|
|
6
6
|
export interface FunctionContext {
|
|
7
|
+
/**
|
|
8
|
+
* `local` is set to `true` when testing your function locally.
|
|
9
|
+
* i.e. `sanity function test func-name`
|
|
10
|
+
* Otherwise, the property is not set.
|
|
11
|
+
*/
|
|
12
|
+
local?: boolean;
|
|
7
13
|
/**
|
|
8
14
|
* Options that can be passed to a `@sanity/client` constructor to configure it
|
|
9
15
|
* against the project and dataset which triggered the event. Note that you should
|
package/package.json
CHANGED
package/src/types.ts
CHANGED
|
@@ -4,6 +4,12 @@
|
|
|
4
4
|
* @beta
|
|
5
5
|
*/
|
|
6
6
|
export interface FunctionContext {
|
|
7
|
+
/**
|
|
8
|
+
* `local` is set to `true` when testing your function locally.
|
|
9
|
+
* i.e. `sanity function test func-name`
|
|
10
|
+
* Otherwise, the property is not set.
|
|
11
|
+
*/
|
|
12
|
+
local?: boolean
|
|
7
13
|
/**
|
|
8
14
|
* Options that can be passed to a `@sanity/client` constructor to configure it
|
|
9
15
|
* against the project and dataset which triggered the event. Note that you should
|