mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
packages/ui-components/tooltip
Signed-off-by: Gabriel <gaccettola@mirantis.com>
This commit is contained in:
1 parent
67fa57c15c
commit
6404993432
434 files changed
+45562
-38
No files matched your search
@@ -0,0 +1,2 @@
|
||||
export type { StartableStoppable, Starter, Stopper } from "./src/get-startable-stoppable";
|
||||
export { getStartableStoppable } from "./src/get-startable-stoppable";
|
||||
@@ -0,0 +1 @@
|
||||
(()=>{"use strict";var t={d:(e,r)=>{for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function r(t,e){let r,o="stopped";return{get started(){return"started"===o},start:()=>{if("stopped"!==o)throw new Error(`Tried to start "${t}", but it is already ${o}.`);o="starting",r=e(),o="started"},stop:()=>{if("started"!==o)throw new Error(`Tried to stop "${t}", but it is already ${o}.`);r(),o="stopped"}}}t.r(e),t.d(e,{getStartableStoppable:()=>r}),module.exports=e})();
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
export type Stopper = () => void;
|
||||
export type Starter = () => Stopper;
|
||||
export interface StartableStoppable {
|
||||
readonly started: boolean;
|
||||
start: () => void;
|
||||
stop: () => void;
|
||||
}
|
||||
export declare function getStartableStoppable(id: string, startAndGetStopper: Starter): StartableStoppable;
|
||||
Reference in new issue
Block a user