|
|
@ -8,10 +8,14 @@ export class PropertyKeyPipe implements PipeTransform<string, PropertyKey> { |
|
|
private readonly allowedKeys: Set<string>; |
|
|
private readonly allowedKeys: Set<string>; |
|
|
|
|
|
|
|
|
public constructor() { |
|
|
public constructor() { |
|
|
this.allowedKeys = new Set( |
|
|
this.allowedKeys = new Set<string>( |
|
|
Object.entries(config) |
|
|
Object.entries(config) |
|
|
.filter(([key]) => key.startsWith('PROPERTY_')) |
|
|
.filter(([key]) => { |
|
|
.map(([, value]) => value as string) |
|
|
return key.startsWith('PROPERTY_'); |
|
|
|
|
|
}) |
|
|
|
|
|
.map(([, value]) => { |
|
|
|
|
|
return value as string; |
|
|
|
|
|
}) |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|