Skip to content

Commit

Permalink
use object type for properties
Browse files Browse the repository at this point in the history
  • Loading branch information
JhontSouth committed Feb 2, 2024
1 parent c70d169 commit 5935599
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,7 @@ export const ChannelAccount: CompositeMapper = {
properties: {
serializedName: "properties",
type: {
name: "Dictionary",
value: {
type: {
name: "any"
}
}
name: "Object"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,7 @@ export interface ChannelAccount {
aadObjectId?: string;
id: string;
name: string;
properties?: any;
role?: RoleTypes | string;
}

Expand Down
6 changes: 3 additions & 3 deletions libraries/botframework-schema/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ export interface ChannelAccount {
role?: RoleTypes | string;

/**
* Properties not represented in a defined type
* Custom properties object (optional)
*/
properties: { [key: string]: any };
properties?: any; // eslint-disable-line @typescript-eslint/no-explicit-any
}

const channelAccount = z.object({
Expand Down Expand Up @@ -2461,7 +2461,7 @@ export interface SearchInvokeOptions {
* Name of 'application/search'.
*/
// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface SearchInvokeResponse extends AdaptiveCardInvokeResponse { }
export interface SearchInvokeResponse extends AdaptiveCardInvokeResponse {}

/**
* Represents a response returned by a bot when it receives an `invoke` activity.
Expand Down

0 comments on commit 5935599

Please sign in to comment.