MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / register

Method register

packages/core/ui/core/properties/index.ts:342–348  ·  view source on GitHub ↗
(cls: { prototype: T })

Source from the content-addressed store, hash-verified

340 }
341
342 public register(cls: { prototype: T }): void {
343 if (this.registered) {
344 throw new Error(`Property ${this.name} already registered.`);
345 }
346 this.registered = true;
347 Object.defineProperty(cls.prototype, this.name, this);
348 }
349
350 public isSet(instance: T): boolean {
351 return this.key in instance;

Calls

no outgoing calls

Tested by

no test coverage detected