From 0edf7a4bcf283f1f864d069106598a1fec37fb69 Mon Sep 17 00:00:00 2001 From: Mike Wilkerson <11575183+mlwilkerson@users.noreply.github.com> Date: Wed, 5 Jun 2024 14:49:56 -0700 Subject: [PATCH] Update CHANGELOG to show new QueryHandler type signature --- CHANGELOG.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ea738d..4dba56a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -46,6 +46,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p into a single query document string. Thus, any `QueryHandler` callback must be updated to handle the query variables. + Its type signature is now: + + ```typescript + export type QueryHandler = (document: string, variables?: object) => Promise; + ``` + Suggestion: ```javascript @@ -102,4 +108,4 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p ### Added -- Initial version \ No newline at end of file +- Initial version