Browse Source

fix: @typescript-eslint/consistent-type-definitions

Signed-off-by: Dominik Willner <th33xitus@gmail.com>
pull/3980/head
dw-0 10 months ago
parent
commit
d3cfcee463
  1. 1
      .eslintrc.json
  2. 4
      apps/api/src/app/auth/interfaces/simplewebauthn.ts
  3. 4
      libs/common/src/lib/types/toggle-option.type.ts
  4. 4
      libs/common/src/lib/types/x-ray-rules-settings.type.ts

1
.eslintrc.json

@ -142,7 +142,6 @@
// The following rules are part of @typescript-eslint/stylistic-type-checked // The following rules are part of @typescript-eslint/stylistic-type-checked
// and can be remove once solved // and can be remove once solved
"@typescript-eslint/consistent-type-definitions": "warn",
"@typescript-eslint/prefer-function-type": "warn", "@typescript-eslint/prefer-function-type": "warn",
"@typescript-eslint/prefer-nullish-coalescing": "warn", // TODO: Requires strictNullChecks: true "@typescript-eslint/prefer-nullish-coalescing": "warn", // TODO: Requires strictNullChecks: true
"@typescript-eslint/consistent-type-assertions": "warn", "@typescript-eslint/consistent-type-assertions": "warn",

4
apps/api/src/app/auth/interfaces/simplewebauthn.ts

@ -198,12 +198,12 @@ export interface AuthenticatorAssertionResponseJSON
/** /**
* A WebAuthn-compatible device and the information needed to verify assertions by it * A WebAuthn-compatible device and the information needed to verify assertions by it
*/ */
export declare type AuthenticatorDevice = { export declare interface AuthenticatorDevice {
credentialPublicKey: Buffer; credentialPublicKey: Buffer;
credentialID: Buffer; credentialID: Buffer;
counter: number; counter: number;
transports?: AuthenticatorTransport[]; transports?: AuthenticatorTransport[];
}; }
/** /**
* An attempt to communicate that this isn't just any string, but a Base64URL-encoded string * An attempt to communicate that this isn't just any string, but a Base64URL-encoded string
*/ */

4
libs/common/src/lib/types/toggle-option.type.ts

@ -1,4 +1,4 @@
export type ToggleOption = { export interface ToggleOption {
label: string; label: string;
value: string; value: string;
}; }

4
libs/common/src/lib/types/x-ray-rules-settings.type.ts

@ -1,4 +1,4 @@
export type XRayRulesSettings = { export interface XRayRulesSettings {
AccountClusterRiskCurrentInvestment?: RuleSettings; AccountClusterRiskCurrentInvestment?: RuleSettings;
AccountClusterRiskSingleAccount?: RuleSettings; AccountClusterRiskSingleAccount?: RuleSettings;
AllocationClusterRiskDevelopedMarkets?: RuleSettings; AllocationClusterRiskDevelopedMarkets?: RuleSettings;
@ -7,7 +7,7 @@ export type XRayRulesSettings = {
CurrencyClusterRiskCurrentInvestment?: RuleSettings; CurrencyClusterRiskCurrentInvestment?: RuleSettings;
EmergencyFundSetup?: RuleSettings; EmergencyFundSetup?: RuleSettings;
FeeRatioInitialInvestment?: RuleSettings; FeeRatioInitialInvestment?: RuleSettings;
}; }
interface RuleSettings { interface RuleSettings {
isActive: boolean; isActive: boolean;

Loading…
Cancel
Save