@salutejs/scenario
Advanced tools
Comparing version 0.17.3 to 0.17.4-canary.225.819e25b792945b09c8adcf62e91d57f2441c4bc8.0
import { SaluteRequest, ScenarioSchema } from './types/salute'; | ||
export declare function createUserScenario<R extends SaluteRequest = SaluteRequest>(scenarioSchema: ScenarioSchema): { | ||
getByPath: (path: string[]) => { | ||
match: (req: SaluteRequest<Record<string, string | string[]>, import("..").AppState, { | ||
match: (req: SaluteRequest<Record<string, string | string[] | undefined>, import("..").AppState, { | ||
payload: unknown; | ||
@@ -9,3 +9,3 @@ type: string; | ||
schema?: string | undefined; | ||
handle: import("./types/salute").SaluteHandler<SaluteRequest<Record<string, string | string[]>, import("..").AppState, { | ||
handle: import("./types/salute").SaluteHandler<SaluteRequest<Record<string, string | string[] | undefined>, import("..").AppState, { | ||
payload: unknown; | ||
@@ -12,0 +12,0 @@ type: string; |
@@ -38,3 +38,3 @@ import { AppInfo, CharacterId, AppState, Message, SmartAppErrorCommand, EmotionId, Card, Bubble, Button, ASRHints, PolicyRunAppComand } from './systemMessage'; | ||
} | ||
export declare type SaluteRequestVariable = Record<string, string | string[]>; | ||
export declare type SaluteRequestVariable = Record<string, string | string[] | undefined>; | ||
export interface SaluteRequest<V = SaluteRequestVariable, S = AppState, A = { | ||
@@ -41,0 +41,0 @@ payload: unknown; |
{ | ||
"name": "@salutejs/scenario", | ||
"version": "0.17.3", | ||
"version": "0.17.4-canary.225.819e25b792945b09c8adcf62e91d57f2441c4bc8.0", | ||
"description": "Tiny helpers to make scenario for Salute family", | ||
@@ -39,3 +39,3 @@ "author": "SberDevices Frontend Team <sberdevices.frontend@gmail.com>", | ||
}, | ||
"gitHead": "1ec87879e01b1f0ab03b1ac7a1cf805af9d317cd" | ||
"gitHead": "819e25b792945b09c8adcf62e91d57f2441c4bc8" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
317840