mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-04-22 17:44:58 +01:00
debug
This commit is contained in:
parent
c38e42e44b
commit
53836a93cd
@ -11,7 +11,7 @@ import {
|
|||||||
RefreshParams,
|
RefreshParams,
|
||||||
SelfServeBaseClass
|
SelfServeBaseClass
|
||||||
} from "./SelfServeTypes";
|
} from "./SelfServeTypes";
|
||||||
import { addPropertyToMap, buildSmartUiDescriptor, DecoratorProperties } from "./SelfServeUtils";
|
import { addPropertyToMap, buildSmartUiDescriptor, DecoratorProperties, SelfServeType } from "./SelfServeUtils";
|
||||||
|
|
||||||
type ValueOf<T> = T[keyof T];
|
type ValueOf<T> = T[keyof T];
|
||||||
interface Decorator {
|
interface Decorator {
|
||||||
@ -147,7 +147,12 @@ const addToMap = (...decorators: Decorator[]): PropertyDecorator => {
|
|||||||
// console.log((target as SelfServeBaseClass).test)
|
// console.log((target as SelfServeBaseClass).test)
|
||||||
// console.log((target as MaterializedViewsBuilder))
|
// console.log((target as MaterializedViewsBuilder))
|
||||||
// console.log((target as MaterializedViewsBuilder).test)
|
// console.log((target as MaterializedViewsBuilder).test)
|
||||||
let className = target.constructor.name;
|
let className: string;
|
||||||
|
if (target.constructor.toString().includes(SelfServeType.materializedviewsbuilder)) {
|
||||||
|
className = SelfServeType.materializedviewsbuilder;
|
||||||
|
} else if (target instanceof Function) {
|
||||||
|
className = target.constructor.name;
|
||||||
|
}
|
||||||
const propertyName = property.toString();
|
const propertyName = property.toString();
|
||||||
if (className === "Function") {
|
if (className === "Function") {
|
||||||
//eslint-disable-next-line @typescript-eslint/ban-types
|
//eslint-disable-next-line @typescript-eslint/ban-types
|
||||||
|
Loading…
x
Reference in New Issue
Block a user