Skip to content

Commit

Permalink
feat: Adds a data generic type for DoistCardRequest. (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
scottlovegrove authored Nov 8, 2022
1 parent f413808 commit c7d2a2f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/ui-extensions-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@doist/ui-extensions-core",
"version": "4.0.0",
"version": "4.1.0",
"description": "",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/ui-extensions-core/src/types/data-exchange.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ export type DoistCardContext = {
/**
* A top-level object representing a request the integration client does against the integration server.
*/
export type DoistCardRequest = {
export type DoistCardRequest<Action extends Partial<DoistCardAction> = DoistCardAction> = {
context: DoistCardContext
action: DoistCardAction
action: Action
extensionType: DoistCardExtensionType
/**
* This is the maximum version of Doist Card that the requesting client supports. This can be used
Expand Down

0 comments on commit c7d2a2f

Please sign in to comment.