Add optional type parameters to dialogflow.Context

This commit is contained in:
Daniel Dyla
2018-12-11 15:30:28 -05:00
parent a6097e9dc2
commit 8ec6fd67d0
+3 -3
View File
@@ -785,10 +785,10 @@ export interface Agent {
classificationThreshold?: number;
}
export interface Context {
name: string;
export interface Context<N = string, T = any> {
name: N;
lifespanCount?: number;
parameters?: any;
parameters?: T;
}
export interface EntityType {