@daiso-tech/core
Version:
The library offers flexible, framework-agnostic solutions for modern web applications, built on adaptable components that integrate seamlessly with popular frameworks like Next Js.
37 lines • 661 B
JavaScript
/**
* @module Namespace
*/
import {} from "../../namespace/contracts/_module.js";
/**
* @internal
*/
class NoOpKey {
key;
constructor(key) {
this.key = key;
}
get() {
return this.key;
}
toString() {
return this.key;
}
equals(value) {
return this.toString() === value.toString();
}
}
/**
* The `NoOpNamespace` will disable namespacing.
*
* IMPORT_PATH: `"@daiso-tech/core/namespace"`
* @group Implementations
*/
export class NoOpNamespace {
toString() {
return "";
}
create(key) {
return new NoOpKey(key);
}
}
//# sourceMappingURL=no-op-namespace.js.map