import { Reflect } from "https://deno.land/x/alosaur@v0.24.1/src/injection/reflect.ts";
const { deleteMetadata } = Reflect;
Deletes the metadata entry from the target object with the provided key.
Examples
class Example {
}
class Example { }
// constructor result = Reflect.deleteMetadata("custom:annotation", Example);
Deletes the metadata entry from the target object with the provided key.
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.deleteMetadata("custom:annotation", Example, "staticProperty");
// property (on prototype)
result = Reflect.deleteMetadata("custom:annotation", Example.prototype, "property");
// method (on constructor)
result = Reflect.deleteMetadata("custom:annotation", Example, "staticMethod");
// method (on prototype)
result = Reflect.deleteMetadata("custom:annotation", Example.prototype, "method");