|
|
|
@ -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, |
|
|
|
|