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
// and can be remove once solved
"@typescript-eslint/consistent-type-definitions": "warn",
"@typescript-eslint/prefer-function-type": "warn",
"@typescript-eslint/prefer-nullish-coalescing": "warn", // TODO: Requires strictNullChecks: true
"@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
*/
export declare type AuthenticatorDevice = {
export declare interface AuthenticatorDevice {
credentialPublicKey: Buffer;
credentialID: Buffer;
counter: number;
transports?: AuthenticatorTransport[];
};
}
/**
* 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;
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;
AccountClusterRiskSingleAccount?: RuleSettings;
AllocationClusterRiskDevelopedMarkets?: RuleSettings;
@ -7,7 +7,7 @@ export type XRayRulesSettings = {
CurrencyClusterRiskCurrentInvestment?: RuleSettings;
EmergencyFundSetup?: RuleSettings;
FeeRatioInitialInvestment?: RuleSettings;
};
}
interface RuleSettings {
isActive: boolean;

Loading…
Cancel
Save