@ampcode/plugin 0.0.0-20261018001817-g5ce754f → 0.0.0-20261020001645-gf9bc6c0
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/index.d.ts +5 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2077,7 +2077,11 @@ declare module '@ampcode/plugin' {
|
|
|
2077
2077
|
export type FilePathFromURI = (uri: URI) => string
|
|
2078
2078
|
|
|
2079
2079
|
/**
|
|
2080
|
-
* Determines whether an
|
|
2080
|
+
* Determines whether an error thrown by `ui.input`, `ui.confirm`, or `ui.select` means the
|
|
2081
|
+
* dialog could not be shown to anyone, as opposed to being shown and dismissed. This happens
|
|
2082
|
+
* when the client has no UI (for example `amp -x`) and when the tool was called from inside
|
|
2083
|
+
* code_exec, which cannot wait for a person. A dismissed dialog never throws; it resolves to
|
|
2084
|
+
* `undefined` or `false`.
|
|
2081
2085
|
*/
|
|
2082
2086
|
export type IsPluginUINotAvailableError = (error: Error) => boolean
|
|
2083
2087
|
|