Browse Source

update: remove unused dependency and use default TS instead

pull/20244/head
sumeyyeKurtulus 2 years ago
parent
commit
a6039ae59a
  1. 12
      npm/ng-packs/packages/components/extensible/src/lib/models/actions.ts
  2. 7
      npm/ng-packs/packages/components/extensible/src/lib/models/props.ts

12
npm/ng-packs/packages/components/extensible/src/lib/models/actions.ts

@ -1,6 +1,5 @@
import { LinkedList } from '@abp/utils';
import { InjectFlags, InjectionToken, InjectOptions, Type } from '@angular/core';
import { O } from 'ts-toolbelt';
export abstract class ActionList<R = any, A = Action<R>> extends LinkedList<A> {}
@ -22,10 +21,13 @@ export abstract class ActionData<R = any> {
}
}
export type ReadonlyActionData<R = any> = O.Merge<
O.Readonly<Omit<ActionData<R>, 'data' | 'record'>>,
{ record: R }
>;
// export type ReadonlyActionData<R = any> = O.Merge<
// Readonly<Omit<ActionData<R>, 'data' | 'record'>>,
// { record: R }
// >;
export type ReadonlyActionData<R = any> = Readonly<Omit<ActionData<R>, 'data'>>;
export abstract class Action<R = any> {
constructor(
public readonly permission: string,

7
npm/ng-packs/packages/components/extensible/src/lib/models/props.ts

@ -1,6 +1,5 @@
import { LinkedList } from '@abp/utils';
import { InjectFlags, InjectionToken, InjectOptions, Type } from '@angular/core';
import { O } from 'ts-toolbelt';
import { ePropType } from '../enums/props.enum';
import { FormPropTooltip } from './form-props';
@ -24,10 +23,8 @@ export abstract class PropData<R = any> {
}
}
export type ReadonlyPropData<R> = O.Merge<
O.Readonly<O.Omit<PropData<R>, 'data' | 'record'>>,
{ record: R }
>;
export type ReadonlyPropData<R = any> = Readonly<Omit<PropData<R>, 'data'>>;
export abstract class Prop<R = any> {
constructor(
public readonly type: ePropType,

Loading…
Cancel
Save