Skip to content

Commit 1dc232d

Browse files
committed
Addressing ESLint errors
1 parent 611a1cc commit 1dc232d

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

packages/sdk/src/shared/component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// eslint-disable @typescript-eslint/no-explicit-any
12
type BaseConfigurableProp = {
23
name: string;
34
type: string;
@@ -23,7 +24,7 @@ export type ConfigurablePropAlert = BaseConfigurableProp & {
2324
};
2425
export type ConfigurablePropAny = BaseConfigurableProp & {
2526
type: "any";
26-
} & Defaultable<any>;
27+
} & Defaultable<any>; // eslint-disable-line @typescript-eslint/no-explicit-any
2728
export type ConfigurablePropApp = BaseConfigurableProp & {
2829
type: "app";
2930
app: string;
@@ -67,7 +68,7 @@ export type ConfigurableProps = Readonly<ConfigurableProp[]>;
6768
export type PropValue<T extends ConfigurableProp["type"]> = T extends "alert"
6869
? never
6970
: T extends "any"
70-
? any
71+
? any // eslint-disable-line @typescript-eslint/no-explicit-any
7172
: T extends "app"
7273
? { authProvisionId: string; }
7374
: T extends "boolean"
@@ -87,7 +88,7 @@ export type ConfiguredProps<T extends ConfigurableProps> = {
8788
};
8889

8990
// as returned by API (configurable_props_json from `afterSave`)
90-
export type V1Component<T extends ConfigurableProps = any> = {
91+
export type V1Component<T extends ConfigurableProps = any> = { // eslint-disable-line @typescript-eslint/no-explicit-any
9192
name: string;
9293
key: string;
9394
version: string;

packages/sdk/src/shared/index.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,15 +181,15 @@ export type Account = {
181181
export type ComponentReloadPropsOpts = {
182182
userId: string;
183183
componentId: string;
184-
configuredProps: any;
184+
configuredProps: any; // eslint-disable-line @typescript-eslint/no-explicit-any
185185
dynamicPropsId?: string;
186186
};
187187

188188
export type ComponentConfigureOpts = {
189189
userId: string;
190190
componentId: string;
191191
propName: string;
192-
configuredProps: any;
192+
configuredProps: any; // eslint-disable-line @typescript-eslint/no-explicit-any
193193
dynamicPropsId?: string;
194194
query?: string;
195195
};
@@ -592,6 +592,7 @@ export abstract class BaseClient {
592592
dynamic_props_id: opts.dynamicPropsId,
593593
environment: this.environment,
594594
};
595+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
595596
return await this.makeConnectRequestAsync<Record<string, any>>("/components/props", {
596597
// TODO trigger
597598
method: "POST",
@@ -602,7 +603,7 @@ export abstract class BaseClient {
602603
public async actionRun(opts: {
603604
userId: string;
604605
actionId: string;
605-
configuredProps: Record<string, any>;
606+
configuredProps: Record<string, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
606607
dynamicPropsId?: string;
607608
}) {
608609
const body = {
@@ -674,7 +675,7 @@ export abstract class BaseClient {
674675
? sanitizedInput
675676
: `https://${sanitizedInput}`;
676677
parsedUrl = new URL(urlString);
677-
} catch (error) {
678+
} catch {
678679
throw new Error(`
679680
The provided URL is malformed: "${sanitizedInput}".
680681
Please provide a valid URL.

0 commit comments

Comments
 (0)