Browse Source

refactoring

pull/23057/head
erdemcaygor 1 year ago
parent
commit
7cc2096210
  1. 2
      npm/ng-packs/packages/components/extensible/src/lib/models/actions.ts
  2. 2
      npm/ng-packs/packages/components/extensible/src/lib/models/entity-props.ts
  3. 2
      npm/ng-packs/packages/components/extensible/src/lib/models/props.ts
  4. 2
      npm/ng-packs/packages/components/extensible/src/lib/pipes/create-injector.pipe.ts
  5. 2
      npm/ng-packs/packages/core/src/lib/tests/utils/common.utils.ts

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

@ -7,7 +7,7 @@ export abstract class ActionData<R = any> {
abstract getInjected: <T>(
token: Type<T> | InjectionToken<T>,
notFoundValue?: T,
flags?: InjectOptions | { optional: true; host: true; skipSelf: true },
flags?: InjectOptions,
) => T;
index?: number;
abstract record: R;

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

@ -93,6 +93,6 @@ export type ColumnPredicate = (getInjected: GetInjected, auxData?: any) => boole
export type GetInjected = <T>(
token: Type<T> | InjectionToken<T>,
notFoundValue?: T,
options?: InjectOptions | { optional: true; host: true; skipSelf: true },
options?: InjectOptions,
) => T;
type PropDataObject = { [key: string]: any };

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

@ -9,7 +9,7 @@ export abstract class PropData<R = any> {
abstract getInjected: <T>(
token: Type<T> | InjectionToken<T>,
notFoundValue?: T,
options?: InjectOptions | { optional: true; host: true; skipSelf: true },
options?: InjectOptions,
) => T;
index?: number;
abstract record: R;

2
npm/ng-packs/packages/components/extensible/src/lib/pipes/create-injector.pipe.ts

@ -14,7 +14,7 @@ export class CreateInjectorPipe<R> implements PipeTransform {
const get = <T>(
token: Type<T> | InjectionToken<T>,
notFoundValue?: T,
options?: InjectOptions | { optional: true; host: true; skipSelf: true },
options?: InjectOptions,
) => {
const componentData = context.getData();
const componentDataCallback = (data: any) => {

2
npm/ng-packs/packages/core/src/lib/tests/utils/common.utils.ts

@ -10,7 +10,7 @@ export class DummyInjector extends Injector {
get<T>(
token: Type<T> | InjectionToken<T> | AbstractType<T>,
notFoundValue?: T,
flags?: { optional: true; host: true; skipSelf: true },
flags?: { optional: true; host: true; skipSelf: true; self: true },
): T;
get(token: any, notFoundValue?: any): any;
get(token, notFoundValue?, flags?: { optional: true; host: true; skipSelf: true }): any {

Loading…
Cancel
Save