diff options
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/dependencies.ts | 4 | ||||
-rw-r--r-- | src/utils/modal.tsx | 4 | ||||
-rw-r--r-- | src/utils/types.ts | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/utils/dependencies.ts b/src/utils/dependencies.ts index 67bf502..3ef84b7 100644 --- a/src/utils/dependencies.ts +++ b/src/utils/dependencies.ts @@ -37,7 +37,7 @@ export const importApngJs = makeLazy(async () => { }); // https://wiki.mozilla.org/APNG_Specification#.60fcTL.60:_The_Frame_Control_Chunk -export enum ApngDisposeOp { +export const enum ApngDisposeOp { /** * no disposal is done on this frame before rendering the next; the contents of the output buffer are left as is. */ @@ -53,7 +53,7 @@ export enum ApngDisposeOp { } // TODO: Might need to somehow implement this -export enum ApngBlendOp { +export const enum ApngBlendOp { SOURCE, OVER } diff --git a/src/utils/modal.tsx b/src/utils/modal.tsx index 1738623..05d235f 100644 --- a/src/utils/modal.tsx +++ b/src/utils/modal.tsx @@ -21,14 +21,14 @@ import type { ComponentType, PropsWithChildren, ReactNode, Ref } from "react"; import { LazyComponent } from "./react"; -export enum ModalSize { +export const enum ModalSize { SMALL = "small", MEDIUM = "medium", LARGE = "large", DYNAMIC = "dynamic", } -enum ModalTransitionState { +const enum ModalTransitionState { ENTERING, ENTERED, EXITING, diff --git a/src/utils/types.ts b/src/utils/types.ts index c81b13a..6af1bdc 100644 --- a/src/utils/types.ts +++ b/src/utils/types.ts @@ -117,7 +117,7 @@ export interface PluginDef { tags?: string[]; } -export enum OptionType { +export const enum OptionType { STRING, NUMBER, BIGINT, |