Skip to content

Commit

Permalink
Additional lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
chriszarate committed Jun 22, 2023
1 parent b7ae5e1 commit a998aca
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/lib/dev-environment/dev-environment-core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ export function readEnvironmentData( slug: string ): InstanceData {
return instanceData;
}

/**9
/**
* Writes the instance data.
*
* @param {string} slug Env slug
Expand Down Expand Up @@ -551,7 +551,7 @@ export async function getApplicationInformation(

const appData = {} as AppInfo;

if ( queryResult ) {
if ( queryResult.id ) {
appData.id = queryResult.id;
appData.name = queryResult.name;
appData.repository = queryResult.repository?.htmlUrl;
Expand Down
20 changes: 10 additions & 10 deletions src/lib/dev-environment/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export interface InstanceOptions {
[ index: string ]: unknown;
}

export type AppInfo = {
export interface AppInfo {
id?: number | null;
name?: string | null;
repository?: string | null;
Expand All @@ -31,30 +31,30 @@ export type AppInfo = {
php: string;
wordpress: string;
};
};
}

export type ComponentConfig = {
export interface ComponentConfig {
mode: 'local' | 'image';
dir?: string;
image?: string;
tag?: string;
};
}

export type WordPressConfig = {
export interface WordPressConfig {
mode: 'image';
tag: string;
ref?: string;
doNotUpgrade?: boolean;
};
}

export type EnvironmentNameOptions = {
export interface EnvironmentNameOptions {
slug: string;
app: string;
env: string;
allowAppEnv?: boolean;
};
}

export type ConfigurationFileOptions = {
export interface ConfigurationFileOptions {
version?: string;
slug?: string;
title?: string;
Expand All @@ -71,7 +71,7 @@ export type ConfigurationFileOptions = {
mailpit?: boolean;
'media-redirect-domain'?: string;
photon?: boolean;
};
}

export interface InstanceData {
[ index: string ]: unknown;
Expand Down

0 comments on commit a998aca

Please sign in to comment.