File tree 1 file changed +20
-0
lines changed
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,15 @@ interface BaseConfig {
30
30
}
31
31
32
32
interface ConfigWithPath extends BaseConfig {
33
+ /**
34
+ * One or more URL paths for which the function will not run, even if they
35
+ * match a path defined with the `path` property. Paths must begin with a
36
+ * forward slash.
37
+ *
38
+ * {@link } https://ntl.fyi/func-routing
39
+ */
40
+ excludedPath ?: Path | Path [ ]
41
+
33
42
/**
34
43
* One or more URL paths for which the function will run. Paths must begin
35
44
* with a forward slash.
@@ -38,10 +47,21 @@ interface ConfigWithPath extends BaseConfig {
38
47
*/
39
48
path ?: Path | Path [ ]
40
49
50
+ /**
51
+ * The `schedule` property cannot be used when `path` is used.
52
+ */
41
53
schedule ?: never
42
54
}
43
55
44
56
interface ConfigWithSchedule extends BaseConfig {
57
+ /**
58
+ * The `excludedPath` property cannot be used when `schedule` is used.
59
+ */
60
+ excludedPath ?: never
61
+
62
+ /**
63
+ * The `path` property cannot be used when `schedule` is used.
64
+ */
45
65
path ?: never
46
66
47
67
/**
You can’t perform that action at this time.
0 commit comments