From 2b7428577a832d77e3093432b271998b516f459f Mon Sep 17 00:00:00 2001 From: Kuu Miyazaki Date: Sun, 21 Apr 2024 12:34:30 -0700 Subject: [PATCH] fix: Fix the wrong type of stringify() --- types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types.ts b/types.ts index 1151625..0a9cc00 100644 --- a/types.ts +++ b/types.ts @@ -520,6 +520,6 @@ export type TagParam = export type UserAttribute = number | string | Uint8Array; export type PostProcess = { - segmentProcessor: ((lines: string[], start: number, end: number, segment: Segment, i: number) => void) | undefined; - variantProcessor: ((lines: string[], start: number, end: number, variant: Variant, i: number) => void) | undefined; + segmentProcessor?: ((lines: string[], start: number, end: number, segment: Segment, i: number) => void); + variantProcessor?: ((lines: string[], start: number, end: number, variant: Variant, i: number) => void); };