@sanity/blueprints 0.0.1 → 0.1.0
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 +3 -1
- package/package.json +1 -1
- package/src/types.ts +3 -1
package/dist/types.d.ts
CHANGED
|
@@ -3,10 +3,11 @@ export interface BlueprintResource {
|
|
|
3
3
|
name: string;
|
|
4
4
|
}
|
|
5
5
|
export interface BlueprintFunctionResourceEvent {
|
|
6
|
-
on:
|
|
6
|
+
on: [BlueprintFunctionResourceEventName, ...BlueprintFunctionResourceEventName[]];
|
|
7
7
|
filter?: string;
|
|
8
8
|
projection?: string;
|
|
9
9
|
}
|
|
10
|
+
type BlueprintFunctionResourceEventName = 'publish';
|
|
10
11
|
export interface BlueprintFunctionResource extends BlueprintResource {
|
|
11
12
|
type: 'sanity.function.document';
|
|
12
13
|
src: string;
|
|
@@ -36,3 +37,4 @@ export type BlueprintModule = ((args?: unknown) => Blueprint) & {
|
|
|
36
37
|
projectId?: string;
|
|
37
38
|
stackId?: string;
|
|
38
39
|
};
|
|
40
|
+
export {};
|
package/package.json
CHANGED
package/src/types.ts
CHANGED
|
@@ -4,11 +4,13 @@ export interface BlueprintResource {
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
export interface BlueprintFunctionResourceEvent {
|
|
7
|
-
on:
|
|
7
|
+
on: [BlueprintFunctionResourceEventName, ...BlueprintFunctionResourceEventName[]]
|
|
8
8
|
filter?: string
|
|
9
9
|
projection?: string
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
type BlueprintFunctionResourceEventName = 'publish'
|
|
13
|
+
|
|
12
14
|
export interface BlueprintFunctionResource extends BlueprintResource {
|
|
13
15
|
type: 'sanity.function.document'
|
|
14
16
|
src: string
|