Skip to content

Instantly share code, notes, and snippets.

View diegodalbosco's full-sized avatar

Diego Dal Bosco diegodalbosco

View GitHub Profile
@diegodalbosco
diegodalbosco / dialogflow-fulfillment.d.ts
Last active February 25, 2021 19:56 — forked from slowtick/dialogflow-fulfillment.d.ts
Deprecate set/getContext and add context.set/get
declare module 'dialogflow-fulfillment' {
import { DialogflowConversation } from 'actions-on-google';
import { Request, Response } from 'express';
export class Card extends RichResponse {
constructor(card: string | object);
public setButton(button: {
text: string,
url: string,
@diegodalbosco
diegodalbosco / dialogflow-fulfillment.d.ts
Last active August 2, 2019 08:59 — forked from MTRNord/dialogflow-fulfillment.d.ts
Fix payload constructor parameters
declare module 'dialogflow-fulfillment' {
import { DialogflowConversation } from 'actions-on-google';
import { Request, Response } from 'express';
export class Card extends RichResponse {
constructor(card: string | object);
public setButton(button: {
text: string,
url: string,