Skip to content

Commit

Permalink
fix: remove type mis-usage
Browse files Browse the repository at this point in the history
Signed-off-by: samuel.park <[email protected]>
  • Loading branch information
piggggggggy committed Nov 23, 2023
1 parent 2da3a1d commit 91dc8a7
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
3 changes: 1 addition & 2 deletions apps/web/src/schema/identity/role/model.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { Tags, TimeStamp } from '@/schema/_common/model';
import type { RoleType } from '@/schema/identity/role/type';
import type { Policy } from '@/schema/inventory/cloud-service-report/model';
import type { RoleType, Policy } from '@/schema/identity/role/type';

import type { RawPagePermission } from '@/lib/access-control/config';

Expand Down
5 changes: 5 additions & 0 deletions apps/web/src/schema/identity/role/type.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import type { ROLE_TYPE } from '@/schema/identity/role/constant';

export type RoleType = typeof ROLE_TYPE[keyof typeof ROLE_TYPE];

export interface Policy {
policy_id: string;
policy_type: string;
}
5 changes: 1 addition & 4 deletions apps/web/src/schema/inventory/cloud-service-report/model.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
export interface Policy {
policy_id: string;
policy_type: string;
}

2 changes: 1 addition & 1 deletion apps/web/src/schema/inventory/job-task/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { JobTaskError } from '@/services/asset-inventory/types/collector-hi

export interface JobTaskModel {
job_task_id: string;
status: string;
status: string;
create_count: number;
updated_count: number;
failure_count: number;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ import { ApiQueryHelper } from '@cloudforet/core-lib/space-connector/helper';
import { SpaceRouter } from '@/router';
import type { PolicyModel } from '@/schema/identity/policy/model';
import type { Policy } from '@/schema/inventory/cloud-service-report/model';
import type { Policy } from '@/schema/identity/role/type';
import { store } from '@/store';
import { replaceUrlQuery } from '@/lib/router-query-string';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ import {
import { PHeading } from '@spaceone/design-system';
import type { RoleModel } from '@/schema/identity/role/model';
import type { RoleType } from '@/schema/identity/role/type';
import type { Policy } from '@/schema/inventory/cloud-service-report/model';
import type { RoleType, Policy } from '@/schema/identity/role/type';
import { i18n } from '@/translations';
import type { RawPagePermission } from '@/lib/access-control/config';
Expand Down

0 comments on commit 91dc8a7

Please sign in to comment.