Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
capitalize memory type
  • Loading branch information
thechenky committed May 8, 2019
commit b0ac7c3aa88838e999250eb39533f160f4c6acd6
6 changes: 3 additions & 3 deletions src/function-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const VALID_MEMORY_OPTS = ['128MB', '256MB', '512MB', '1GB', '2GB'];
// Adding this memory type here to error on compile for TS users.
// Unfortunately I have not found a way to merge this with VALID_MEMORY_OPS
// without it being super ugly. But here they are right next to each other at least.
type memory = '128MB' | '256MB' | '512MB' | '1GB' | '2GB';
type Memory = '128MB' | '256MB' | '512MB' | '1GB' | '2GB';

/**
* Cloud Functions max timeout value.
Expand Down Expand Up @@ -131,13 +131,13 @@ export function runWith(runtimeOptions: RuntimeOptions): FunctionBuilder {

export interface RuntimeOptions {
timeoutSeconds?: number;
memory?: memory;
memory?: Memory;
}

export interface DeploymentOptions {
regions?: string[];
timeoutSeconds?: number;
memory?: memory;
memory?: Memory;
schedule?: Schedule;
}

Expand Down