Skip to content

Commit b51f73a

Browse files
committed
Fix build issues
1 parent eadea47 commit b51f73a

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

src/browser/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
export type * from "../api/types/index.js";
88
export * from "../index.js";
99

10-
import { ConnectTokenProvider, TokenCallback } from "../core/auth/index.js";
10+
import { ConnectTokenProvider, type TokenCallback } from "../core/auth/index.js";
1111
import { type Account, type App, PipedreamClient as BackendClient, PipedreamEnvironment } from "../index.js";
12-
import { PipedreamClientOpts as BackendClientOpts } from "../wrapper/Pipedream.js";
12+
import type { PipedreamClientOpts as BackendClientOpts } from "../wrapper/Pipedream.js";
1313

1414
if (typeof process === "undefined") {
1515
// We're in the browser
@@ -138,7 +138,7 @@ export function createFrontendClient(
138138
*/
139139
token?: string;
140140
},
141-
) {
141+
): PipedreamClient {
142142
const {
143143
// These are some dummy values that would produce a blank Connect token,
144144
// in case the user does not need to make any API requests other than
@@ -230,7 +230,7 @@ export class PipedreamClient extends BackendClient {
230230
* });
231231
* ```
232232
*/
233-
public async connectAccount(opts: StartConnectOpts) {
233+
public async connectAccount(opts: StartConnectOpts): Promise<void> {
234234
let connectionSuccessful = false;
235235
let connectionCompleted = false;
236236

src/core/auth/ConnectTokenProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export class ConnectTokenProvider implements TokenProvider {
6060
return this._tokenRequest;
6161
}
6262

63-
public refresh() {
63+
public refresh(): void {
6464
this._token = undefined;
6565
}
6666
}

src/core/auth/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export { BasicAuth } from "./BasicAuth.js";
22
export { BearerToken } from "./BearerToken.js";
3-
export { ConnectTokenProvider, TokenCallback } from "./ConnectTokenProvider.js";
3+
export { ConnectTokenProvider, type TokenCallback } from "./ConnectTokenProvider.js";
44
export { OAuthTokenProvider } from "./OAuthTokenProvider.js";
55
export { StaticTokenProvider } from "./StaticTokenProvider.js";
6-
export { TokenProvider } from "./TokenProvider.js";
6+
export type { TokenProvider } from "./TokenProvider.js";

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export * from "./api/index.js";
22
export { PipedreamError, PipedreamTimeoutError } from "./errors/index.js";
33
export { PipedreamEnvironment } from "./environments.js";
4-
export { Pipedream as PipedreamClient, PipedreamClientOpts } from "./wrapper/Pipedream.js";
4+
export { Pipedream as PipedreamClient, type PipedreamClientOpts } from "./wrapper/Pipedream.js";

src/wrapper/utils/getBaseUrl.browser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ import { PipedreamEnvironment } from "../../environments.js";
66
*
77
* @returns The base URL for the Pipedream API.
88
*/
9-
export const getBaseUrl = () => PipedreamEnvironment.Prod;
9+
export const getBaseUrl = (): string => PipedreamEnvironment.Prod;

src/wrapper/utils/getBaseUrl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ import { PipedreamEnvironment } from "../../environments.js";
88
* @param environment - The Pipedream environment string.
99
* @returns The base URL for the Pipedream API.
1010
*/
11-
export const getBaseUrl = (environment: PipedreamEnvironment) =>
11+
export const getBaseUrl = (environment: PipedreamEnvironment): string =>
1212
environment.replace(/\$\{(\w+)\}/g, (_, name) => process.env[name] ?? "");

0 commit comments

Comments
 (0)