Skip to content

Commit

Permalink
Re-export Change from v1 & v2 root (#1158)
Browse files Browse the repository at this point in the history
- Re-export Change from the v1 & v2 index.ts
- In v1, we can export from `cloud-functions.ts` since that module is exported from the root
  • Loading branch information
colerogers committed Jun 29, 2022
1 parent a00ad92 commit 47f72d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cloud-functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ import {
} from './common/encoding';
import { ManifestEndpoint, ManifestRequiredAPI } from './runtime/manifest';

export { Change } from './common/change';

/** @hidden */
const WILDCARD_REGEX = new RegExp('{[^/{}]*}', 'g');

Expand Down
2 changes: 2 additions & 0 deletions src/v2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,6 @@ export {
EventHandlerOptions,
} from './options';

export { Change } from '../common/change';

export { CloudFunction, CloudEvent } from './core';

0 comments on commit 47f72d8

Please sign in to comment.