Skip to content

Commit

Permalink
shell: Declare two machines helper functions
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpitt committed Dec 19, 2024
1 parent 30df8f8 commit 1e420c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pkg/shell/machines/machines.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { Manifests } from "../manifests";

export function generate_connection_string(user: string | null, port: string | null, addr: string) : string;
export function split_connection_string (conn_to: string) : { address: string, user?: string, port?: number };
export function get_init_superuser_for_options (options: {[key: string]: string }) : string | null;
export function host_superuser_storage_key (host: string): string;

export interface Machine {
key: string;
Expand Down
1 change: 0 additions & 1 deletion test/common/typecheck
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ javascript_ignored_codes = [
"TS2741", # Property 'X' is missing in type
"TS2551", # Property 'X' does not exist on type
"TS2304", # Cannot find name 'X'
"TS2305", # Module '"./machines/machines"' has no exported member 'get_init_superuser_for_options'.
"TS2538", # Type 'null' cannot be used as an index type.
"TS2559", # Type 'never[]' has no properties in common with type 'DBusCallOptions'.
"TS2769", # No overload matches this call.
Expand Down

0 comments on commit 1e420c2

Please sign in to comment.