Skip to content

Commit 3d951b2

Browse files
authored
Fixed dataSource type (#730)
1 parent f22285a commit 3d951b2

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

packages/mgt-react/src/generated/react.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ResponseType,IDynamicPerson,PersonType,GroupType,PersonCardInteraction,PersonViewType,AvatarSize,TasksStringResource,TaskFilter,SelectedChannel } from '@microsoft/mgt';
1+
import { ResponseType,IDynamicPerson,PersonType,GroupType,PersonCardInteraction,PersonViewType,AvatarSize,TasksStringResource,TasksSource,TaskFilter,SelectedChannel } from '@microsoft/mgt';
22
import * as MgtElement from '@microsoft/mgt-element';
33
import * as MicrosoftGraph from '@microsoft/microsoft-graph-types';
44
import * as MicrosoftGraphBeta from '@microsoft/microsoft-graph-types-beta';
@@ -117,7 +117,7 @@ export type TasksProps = {
117117
res?: TasksStringResource;
118118
isNewTaskVisible?: boolean;
119119
readOnly?: boolean;
120-
dataSource?: string;
120+
dataSource?: TasksSource;
121121
targetId?: string;
122122
targetBucketId?: string;
123123
initialId?: string;

packages/mgt/src/components/mgt-tasks/mgt-tasks.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ export class MgtTasks extends MgtTemplatedComponent {
237237

238238
/**
239239
* determines which task source is loaded, either planner or todo
240-
* @type {string}
240+
* @type {TasksSource}
241241
*/
242242
@property({
243243
attribute: 'data-source',
@@ -300,13 +300,16 @@ export class MgtTasks extends MgtTemplatedComponent {
300300

301301
/**
302302
* allows developer to define specific group id
303+
*
304+
* @type {string}
303305
*/
304306
@property({ attribute: 'group-id', type: String })
305307
public groupId: string;
306308

307309
/**
308310
* Optional filter function when rendering tasks
309311
*
312+
* @type {TaskFilter}
310313
* @memberof MgtTasks
311314
*/
312315
public taskFilter: TaskFilter;

0 commit comments

Comments
 (0)