Skip to content

Commit

Permalink
chore: fix api types
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Nov 26, 2021
1 parent 82f5f44 commit ee71daa
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 29 deletions.
1 change: 0 additions & 1 deletion scripts/build-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ function buildIntegrationApi(opts: BuildOptions) {
showVerboseMessages: true,
});
if (!result.succeeded) {
console.error(result);
process.exit(1);
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,8 @@ export interface PartytownConfig {
* The `resolveUrl()` hook can be used to modify the URL about to be
* requested, which could be used to rewrite urls so they go through a proxy.
*
* @param url The URL to be resolved. This is a URL https://developer.mozilla.org/en-US/docs/Web/API/URL, not a string.
* @param location The current window location.
* @param url - The URL to be resolved. This is a URL https://developer.mozilla.org/en-US/docs/Web/API/URL, not a string.
* @param location - The current window location.
* @returns The returned value must be a URL interface, otherwise the default resolved URL is used.
*/
resolveUrl?(url: URL, location: Location): URL | undefined | null;
Expand Down
55 changes: 29 additions & 26 deletions src/react/api.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,29 @@
## API Report File for "@builder.io/partytown-react"

> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
```ts
// @public
export const GoogleTagManager: ({ containerId }: GoogleTagManagerProps) => any;

// @public
export const GoogleTagManagerNoScript: ({ containerId }: GoogleTagManagerProps) => any;

// @public
export type GoogleTagManagerProps = {
containerId: string;
};

// @public
export const Partytown: (props?: PartytownProps | undefined) => any;

// Warning: (ae-forgotten-export) The symbol "PartytownConfig" needs to be exported by the entry point index.d.ts
//
// @public
export interface PartytownProps extends PartytownConfig {}

// (No @packageDocumentation comment for this package)
```
## API Report File for "@builder.io/partytown-react"

> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
```ts

// @public
export const GoogleTagManager: ({ containerId }: GoogleTagManagerProps) => any;

// @public
export const GoogleTagManagerNoScript: ({ containerId }: GoogleTagManagerProps) => any;

// @public
export type GoogleTagManagerProps = {
containerId: string;
};

// @public
export const Partytown: (props?: PartytownProps | undefined) => any;

// Warning: (ae-forgotten-export) The symbol "PartytownConfig" needs to be exported by the entry point index.d.ts
//
// @public
export interface PartytownProps extends PartytownConfig {
}

// (No @packageDocumentation comment for this package)

```

1 comment on commit ee71daa

@vercel
Copy link

@vercel vercel bot commented on ee71daa Nov 26, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.