Skip to content

Commit

Permalink
fix: template now exports correct connection interface
Browse files Browse the repository at this point in the history
  • Loading branch information
tgbv committed Oct 16, 2024
1 parent 01d42fe commit c939cf6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"type": "commonjs",
"name": "cognigy-hammer",
"description": "An extension development suite for CognigyAI.",
"version": "0.6.0",
"version": "0.6.1",
"license": "MIT",
"main": "./build/index.js",
"types": "./build/index.d.ts",
Expand Down
9 changes: 6 additions & 3 deletions templates/connection.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
import type { IConnectionSchema } from "@cognigy/extension-tools"

export interface I{{CONNECTION_NAME}} extends IConnectionSchema {
export interface I{{CONNECTION_NAME}} {

}

export default {
const connection: IConnectionSchema = {
type: '{{CONNECTION_NAME}}',
label: '{{CONNECTION_NAME}} label here',
fields: [

]
} as I{{CONNECTION_NAME}};
};

export default connection;
export const {{CONNECTION_NAME}} = connection;

0 comments on commit c939cf6

Please sign in to comment.