index.d.ts 587 B

12345678910111213141516
  1. /**
  2. * Populate the `{{projectId}}` placeholder.
  3. *
  4. * @throws {Error} If a projectId is required, but one is not provided.
  5. *
  6. * @param {*} - Any input value that may contain a placeholder. Arrays and objects will be looped.
  7. * @param {string} projectId - A projectId. If not provided
  8. * @return {*} - The original argument with all placeholders populated.
  9. */
  10. export declare function replaceProjectIdToken(value: any, projectId: string): any;
  11. /**
  12. * Custom error type for missing project ID errors.
  13. */
  14. export declare class MissingProjectIdError extends Error {
  15. message: string;
  16. }