import { Reflect } from "https://deno.land/x/alosaur@v0.34.0/src/injection/reflect.ts";
const { getOwnMetadataKeys } = Reflect;
Gets the unique metadata keys defined on the target object.
Examples
class Example {
}
class Example { }
// constructor result = Reflect.getOwnMetadataKeys(Example);
Gets the unique metadata keys defined on the target object.
Examples
class Example {
// property declarations are not part of ES6, though they are valid in TypeScript:
// static staticProperty;
// property;
class Example { // property declarations are not part of ES6, though they are valid in TypeScript: // static staticProperty; // property;
static staticMethod(p) { } method(p) { } }
// property (on constructor)
result = Reflect.getOwnMetadataKeys(Example, "staticProperty");
// property (on prototype)
result = Reflect.getOwnMetadataKeys(Example.prototype, "property");
// method (on constructor)
result = Reflect.getOwnMetadataKeys(Example, "staticMethod");
// method (on prototype)
result = Reflect.getOwnMetadataKeys(Example.prototype, "method");