@enable-tech/shared-types
Version:
This package represents the single source of truth of the Types being used in the codebase (front-end and back-end) of enable.tech, It is an organization-scoped package. So, all the development teams belonging to it can participate to enhance it.
32 lines • 1.05 kB
TypeScript
import { T_FalsyValue } from 'src/common/client/types';
import { I_GetEnablePassResponse } from '../../backend/responses';
import { E_EnablePassInstallationChoice } from '../enums';
import { T_FontSize } from '../types';
export interface I_EnablePassContextType {
pass: T_FalsyValue<I_GetEnablePassResponse>;
language: I_GetEnablePassResponse['language'];
brandId: T_FalsyValue<string>;
customerId: T_FalsyValue<string>;
errorMessage: T_FalsyValue<string>;
}
export interface I_BeforeInstallPromptEvent extends Event {
prompt: () => Promise<void>;
userChoice: Promise<{
outcome: E_EnablePassInstallationChoice;
platform: string;
}>;
}
export interface I_GenerateDynamicFontSizeParams {
minimumSize: T_FontSize;
baseSize: T_FontSize;
shrinkAmount: T_FontSize;
maximumSize: T_FontSize;
}
export interface I_ErrorResponse {
message: string;
}
export interface I_UseTrackingAndDataCollectionParams {
initialize?: boolean;
pageViewed?: boolean;
}
//# sourceMappingURL=index.d.ts.map