Package @google-cloud/projectify (4.0.0)

Classes

MissingProjectIdError

Custom error type for missing project ID errors.

Functions

replaceProjectIdToken(value, projectId)

export declare function replaceProjectIdToken(value: any, projectId: string): any;

Populate the {{projectId}} placeholder.

Parameters
NameDescription
valueany
projectIdstring

A projectId. If not provided {*} - The original argument with all placeholders populated.

Returns
TypeDescription
any