21 lines · 539 B · TypeScript
RawDownload
/** * Launch state tracker. */export interface LaunchState {  getLaunchingRecipeId: () => string | null;  setLaunchingRecipeId: (recipeId: string | null) => void;} /** * Create a launch state tracker. * @returns LaunchState instance. */export const createLaunchState = (): LaunchState => {  let launchingRecipeId: string | null = null;  return {    getLaunchingRecipeId: (): string | null => launchingRecipeId,    setLaunchingRecipeId: (recipeId: string | null): void => {      launchingRecipeId = recipeId;    },  };};

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t