mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-07-10 14:52:49 +02:00
Fix TS type
This commit is contained in:
@@ -11,7 +11,6 @@ import {
|
|||||||
HttpRequestAction,
|
HttpRequestAction,
|
||||||
InternalEvent,
|
InternalEvent,
|
||||||
InternalEventPayload,
|
InternalEventPayload,
|
||||||
JsonPrimitive,
|
|
||||||
ListCookieNamesResponse,
|
ListCookieNamesResponse,
|
||||||
PluginWindowContext,
|
PluginWindowContext,
|
||||||
PromptTextResponse,
|
PromptTextResponse,
|
||||||
@@ -22,6 +21,7 @@ import {
|
|||||||
TemplateRenderResponse,
|
TemplateRenderResponse,
|
||||||
} from '@yaakapp-internal/plugins';
|
} from '@yaakapp-internal/plugins';
|
||||||
import { Context, PluginDefinition } from '@yaakapp/api';
|
import { Context, PluginDefinition } from '@yaakapp/api';
|
||||||
|
import { JsonValue } from '@yaakapp/api/lib/bindings/serde_json/JsonValue';
|
||||||
import console from 'node:console';
|
import console from 'node:console';
|
||||||
import { readFileSync, type Stats, statSync, watch } from 'node:fs';
|
import { readFileSync, type Stats, statSync, watch } from 'node:fs';
|
||||||
import path from 'node:path';
|
import path from 'node:path';
|
||||||
@@ -568,7 +568,7 @@ function genId(len = 5): string {
|
|||||||
/** Recursively apply form input defaults to a set of values */
|
/** Recursively apply form input defaults to a set of values */
|
||||||
function applyFormInputDefaults(
|
function applyFormInputDefaults(
|
||||||
inputs: TemplateFunctionArg[],
|
inputs: TemplateFunctionArg[],
|
||||||
values: { [p: string]: JsonPrimitive | undefined },
|
values: { [p: string]: JsonValue | undefined },
|
||||||
) {
|
) {
|
||||||
for (const input of inputs) {
|
for (const input of inputs) {
|
||||||
if ('inputs' in input) {
|
if ('inputs' in input) {
|
||||||
|
|||||||
Reference in New Issue
Block a user